home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / bc_pas_2.zip / BINARY.INC < prev    next >
Text File  |  1992-06-26  |  5KB  |  197 lines

  1. ;$Author:   DCODY  $
  2. ;$Date:   25 Jun 1992 23:21:10  $
  3. ;$Header:   W:/sccs/inc/binary.inv   1.1   25 Jun 1992 23:21:10   DCODY  $
  4. ;$Log:   W:/sccs/inc/binary.inv  $
  5. ;
  6. ;   Rev 1.1   25 Jun 1992 23:21:10   DCODY
  7. ;added generic SB mixer channel equates
  8. ;
  9. ;   Rev 1.0   15 Jun 1992 09:58:34   BCRANE
  10. ;Initial revision.
  11. ;$Logfile:   W:/sccs/inc/binary.inv  $
  12. ;$Modtimes$
  13. ;$Revision:   1.1  $
  14. ;$Workfile:   binary.inc  $ 
  15.  
  16. ;   /*\
  17. ;---|*|----====< BINARY.INC >====----
  18. ;---|*|
  19. ;---|*| Copyright (c) 1991, Media Vision, Inc.    All Rights Reserved.
  20. ;---|*|
  21. ;   \*/
  22.  
  23. ;
  24. ; commands issued to the 2F interface
  25. ;
  26.  
  27. BI_INSTALLCHECK equ    0        ; Check if the driver is installed
  28. BI_GETVERSION    equ    1        ; Get the version #
  29. BI_GETSTATE    equ    2        ; Get the state pointer and size
  30. BI_GETFUNCTION    equ    3        ; Get the function table pointer
  31. BI_GETDMAIRQ    equ    4        ; Get the DMA/IRQ/INT number
  32. BI_SENDCMD    equ    5        ; reserved now. see function #3
  33. BI_GETSTATUSSTR equ    6        ; Get the status string
  34. BI_reserved1    equ    7        ; reserved
  35. BI_reserved2    equ    8        ; reserved
  36. BI_reserved3    equ    9        ; reserved
  37. BI_SETSCANCODE    equ    10        ; set the hot key scan codes
  38. BI_GETPATH    equ    11        ; get the file path
  39.  
  40. ;
  41. ; TRUE/FALSE & ON/OFF logic values
  42. ;
  43.  
  44. BI_TRUE     equ    -1
  45. BI_FALSE    equ    0
  46.  
  47. BI_ON        equ    BI_TRUE     ; on state
  48. BI_OFF        equ    BI_FALSE    ; off state
  49.  
  50. BI_INT2FCODE1    equ    0BCH        ; Bryan's initials
  51.  
  52. ; int 2F ID (func 0) return register values
  53.  
  54. BI_INT2FREGBX    equ    6D00h        ; 'm '
  55. BI_INT2FREGCX    equ    0076h        ; ' v'
  56. BI_INT2FREGDX    equ    2020h        ; UPPERCASE XOR MASK
  57.  
  58. ;
  59. ; Command Block Structure
  60. ;
  61.  
  62. bcmdblk  struc
  63.  
  64.   bc_blockID      dw    ?    ; language command block    (mandatory)
  65.  
  66.   bc_devcode      dw    ?    ; device code (MIXER/VOLUME/CROSS/FILTER...)
  67.  
  68.   bc_deviceselect dw    ?    ; INPUT|OUTPUT mixer select & more...
  69.  
  70.   bc_fromflag      dw    ?    ; [FROM <term>] TRUE/FALSE
  71.   bc_fromtype      dw    ?    ; type fromvalue is type # or %
  72.   bc_fromvalue      dw    ?    ; value derived from <term>
  73.  
  74.   bc_toflag      dw    ?    ; [TO <term>] TRUE/FALSE    (mandatory)
  75.   bc_totype      dw    ?    ; type fromvalue is type # or %
  76.   bc_tovalue      dw    ?    ; value derived from <term>
  77.  
  78.   breserved1      dw    ?    ; reserved for internal use
  79.  
  80.   bc_leftchflag   dw    ?    ; set left channel  TRUE/FALSE
  81.   bc_leftchannel  dw    ?    ; left channel #
  82.  
  83.   bc_ritchflag      dw    ?    ; set right channel TRUE/FALSE
  84.   bc_ritchannel   dw    ?    ; right channel #
  85.  
  86.   bc_secondsflag  dw    ?    ; TRUE/FALSE to do it over time
  87.   bc_secondcount  dw    ?    ; # of seconds to spread out the command
  88.  
  89.   breserved2      dw    ?    ; reserved for internal use
  90.  
  91.   bc_errorcode      dw    ?    ; holds the error number
  92.   bc_targetstr      dd    ?    ; user's target string pointer
  93.  
  94. bcmdblk  ends
  95.  
  96. ;
  97. ; blockID Commands
  98. ;
  99.  
  100. BI_RESETCMD    equ    0        ; Reset the hardware settings
  101. BI_SETCMD    equ    1        ; SET parsed language block
  102. BI_GETCMD    equ    2        ; GET parsed language block
  103. BI_HOLDCMD    equ    3        ; Hold the queue
  104. BI_RELCMD    equ    4        ; Release the queue
  105.  
  106. ;
  107. ; execode Commands
  108. ;
  109.  
  110. BI_CROSSCMD    EQU    0        ; command is for the cross channel
  111. BI_FILTERCMD    EQU    1        ; command is for the filter
  112. BI_MIXERCMD    EQU    2        ; command is for the mixer
  113. BI_REALCMD    EQU    3        ; command is for the real sound switch
  114. BI_VOLUMECMD    EQU    4        ; command is for the volume
  115.  
  116. BI_LASTEXECMD    EQU    BI_VOLUMECMD    ; Last valid command
  117.  
  118. ;
  119. ; different logic flags for a TO condition (c_xxxxflag)
  120. ;
  121.  
  122. BI_DONTSET    equ     0        ; don't process FROM value
  123. BI_SETFROM    equ    -1        ; FROM setting is available
  124. BI_SETTO    equ    -1        ; TO setting is available (mandatory)
  125. BI_UPTO     equ    -2        ; set up from current setting
  126. BI_DOWNTO    equ    -3        ; set down from current setting
  127.  
  128. ;
  129. ; types of numeric data in FROM and TO fields (c_xxxxtype)
  130. ;
  131.  
  132. BI_TYPEINT    equ    1        ; "getterm" return type
  133. BI_TYPEPCT    equ    2        ; "getterm" return type
  134.  
  135. ;
  136. ; deviceselect values (c_deviceselect)
  137. ;
  138. ;       (none for the filter)
  139.  
  140. ;       for mixers
  141.  
  142. BI_OUTPUTMIXER    equ    00h        ; output mixer H/W select
  143. BI_INPUTMIXER    equ    40h        ; input mixer select
  144. BI_DEFMIXER    equ    0ffh        ; use the default mixer
  145.  
  146. ;    for cross channel
  147.  
  148. BI_RIGHT2RIGHT    equ    01h        ; right to right
  149. BI_LEFT2RIGHT    equ    02h        ; left    to right
  150. BI_RIGHT2LEFT    equ    04h        ; right to left
  151. BI_LEFT2LEFT    equ    08h        ; left    to left
  152.  
  153. ;    for volume control
  154.  
  155. BI_VOLLOUD    equ    00h        ; LOUDNESS switch
  156. BI_VOLENHANCE    equ    01h        ; ENHANCED stereo
  157. BI_VOLBASS    equ    02h        ; BASS (0-12)
  158. BI_VOLTREBLE    equ    03h        ; TREBLE (0-12)
  159. BI_VOLLEFT    equ    04h        ; LEFT VOLUME  (0-40)
  160. BI_VOLRIGHT    equ    05h        ; RIGHT VOLUME (0-40)
  161. BI_VOLMODE    equ    06h        ; MODE    (LEFT/STEREO/RIGHT)
  162.  
  163. BI_bVOLLOUD    equ    0001b        ; enhanced bass bit
  164. BI_bVOLENH    equ    0010b        ; enhanced stereo bit
  165.  
  166. ;
  167. ; left/right mixer channel selection
  168. ;
  169.  
  170. ;    left channel values
  171.  
  172. BI_L_FM     equ    01h
  173. BI_L_IMIXER    equ    02h
  174. BI_L_EXT    equ    03h
  175. BI_L_INT    equ    04h
  176. BI_L_MIC    equ    05h
  177. BI_L_PCM    equ    06h
  178. BI_L_SPEAKER    equ    07h
  179. BI_L_SBDAC    equ    00h
  180.  
  181. ;    right channel values
  182.  
  183. BI_R_FM     equ    08h
  184. BI_R_IMIXER    equ    09h
  185. BI_R_EXT    equ    0Ah
  186. BI_R_INT    equ    0Bh
  187. BI_R_MIC    equ    0Ch
  188. BI_R_PCM    equ    0Dh
  189. BI_R_SPEAKER    equ    0Eh
  190. BI_R_SBDAC    equ    0Fh
  191.  
  192.  
  193. ;   /*\
  194. ;---|*| end of binary.inc
  195. ;   \*/
  196.  
  197.